﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dbPoll_Application.Models.LogOnModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Login
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script src="../../Scripts/Account-LogOn.js" type="text/javascript"></script>
    <div class="pageHeadingContainer"><h2 class="pageHeading">Login</h2></div>
    <div id="contentContainer">
    <% Html.EnableClientValidation(); %>
    <% using (Ajax.BeginForm("LogOn", new AjaxOptions() { UpdateTargetId = "loginContainer", OnSuccess = "logInComplete", OnBegin = "logInStart" }))
       { %>
    <div id="loginContainer">
        <% Html.RenderPartial("LogOnContainer", Model); %>
    </div>
    <% } %>
    </div>

    
</asp:Content>
